package com.lyf;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.ConfigurableEnvironment;

/**
 * @AUTHOR LYF
 * @DATE 2022/5/29
 * @VERSION 1.0
 * @DESC
 */
@SpringBootApplication
@EnableDiscoveryClient
public class BalancerConsumer80 {
    public static void main(String[] args) {
        ConfigurableApplicationContext context =
                SpringApplication.run(BalancerConsumer80.class,args);
        context.getEnvironment().getPropertySources().stream().forEach(u->{
            System.out.println(u);
        });
    }
}
